/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package TransportLayer;

import java.net.InetAddress;
import org.joda.time.DateTime;

/**
 *
 * @author Tomasz Nowak
 */
public class NotaryPacket
{
	InetAddress sourceAddress;
	int sourcePort;
	DateTime receivedTimestamp;

	public DateTime getReceivedTimestamp()
	{
		return receivedTimestamp;
	}

	public InetAddress getSourceAddress()
	{
		return sourceAddress;
	}

	public void setSourceAddress( InetAddress sourceAddress )
	{
		this.sourceAddress = sourceAddress;
	}

	public int getSourcePort()
	{
		return sourcePort;
	}

	public void setSourcePort( int sourcePort )
	{
		this.sourcePort = sourcePort;
	}

	protected NotaryPacket( InetAddress sourceAddress, int sourcePort )
	{
		this.receivedTimestamp = DateTime.now();
		this.sourceAddress = sourceAddress;
		this.sourcePort = sourcePort;
	}
}
